feat(kernels): add cancel session command - #1173
Conversation
Expose the existing kernel-session cancellation API through the CLI, with validation, tests, and command documentation.
|
Hey @ternaus, I am an external reviewer I went through the The docs say that the session ID is the For example, if the docs would lead a user to try: kaggle kernels cancel 3But the cancel API is expecting the So I think the current documentation could cause users to pass the wrong ID and the command won't cancel the session they intended to. Could you please update the documentation/help text to clarify that this command needs the actual Thanks! |
|
Thanks for the careful review. I rechecked this against the public session model: |
|
@ternaus The part I'm still a little confused about is the I also noticed that the new docs describe @stevemessick Could you please help clarify this part? I might be missing something in the API/SDK mapping here, and I'd rather confirm it before pushing the review further. If |
|
/gcbrun |
|
|
Summary
kaggle kernels cancel <SESSION_ID>ApiCancelKernelSessionRequestendpoint and surface API rejections<SESSION_ID>is the numeric version printed bykaggle kernels pushThe CLI exposed status and logs for a run but no way to stop a queued or running session without using the web UI or private SDK code.
Closes #1172.
Validation
PYTHONPATH=src python -m pytest tests/unit -q(1,257 passed)hatch run lint:typingblack --checkon the changed Python files